using System.Collections.Generic;

namespace EternitySolver.Core.Solvers.FixedPath
{
    public class ForwardRowAndColumnSolver : FixedPathSolver
    {
        public override LinkedList<int> GetPath(Board board)
        {
            var path = new LinkedList<int>();
            var node = path.AddFirst(0);
            for (var i = 1; i <= board.PlacedTiles.Count; i++)
            {
                node = path.AddAfter(node, i);
            }
            return path;
        }
        public override string ToString()
        {
            return "Row Solver";
        }
    }
}